package com.phone.entity;

import com.phone.ParameterCheck;
import com.phone.servlet.user.Check;

import java.util.Date;

/**
 * Created by tisen on 2017/9/8.
 */
public class CashHistory extends HibernateObject {

    /**
     * type = -1 : 其他
     * type = 0 : 签到奖励
     * type = 1 : 抽奖奖励
     * type = 2 : 邀请奖励
     * type = 3 : 提现
     * score = 积分变动，可为负数
     */

    private String owner;
    private String account;
    private int type;
    private float money;
    private boolean complete;
    private Date completeDate;

    public CashHistory() {
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public float getMoney() {
        return money;
    }

    public void setMoney(float money) {
        this.money = money;
    }

    public boolean isComplete() {
        return complete;
    }

    public void setComplete(boolean complete) {
        this.complete = complete;
    }

    public Date getCompleteDate() {
        return completeDate;
    }

    public void setCompleteDate(Date completeDate) {
        this.completeDate = completeDate;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "CashHistory{" +
                "id='" + id + '\'' +
                ", date=" + date +
                ", owner='" + owner + '\'' +
                ", account='" + account + '\'' +
                ", money=" + money +
                ", complete=" + complete +
                ", completeDate=" + completeDate +
                '}';
    }
}
